#ifndef I2C_H_
#define I2C_H_

#include "includes.h"

void delay();
void Init_I2c();
void Start(); 
void Stop();
void Ack();
void NoAck();
uint8_t TestAck();
uint8_t Read8Bit();
void Write8Bit(uint8_t input);
void I2cWrite(uint8_t addr,uint8_t reg, uint8_t data);
void I2cRead(uint8_t addr, uint8_t reg, uint8_t len, uint8_t *buf);

//uint8_t i2c_start(void);
//uint8_t i2c_rstart(void);
//uint8_t i2c_stop(void);
//uint8_t i2c_senddat(uint8_t dat);
//uint8_t i2c_recedat(uint16_t mode);


#endif
